package cc.cix.hq.org.dto.request;

import cc.cix.hq.common.core.annotation.IsMobile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author cix
 */
@Data
@ApiModel(value = "LoginDTO对象", description = "用户登录")
public class LoginReq {

    @IsMobile(message = "手机号非法")
    @ApiModelProperty("手机号")
    private String mobile;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @NotBlank(message = "图形验证码不能为空")
    @ApiModelProperty("图形验证码")
    private String verifyCode;

    @NotBlank(message = "key不能为空")
    @ApiModelProperty("key")
    private String key;

}
